package com.flbill.service;

import com.flbill.common.result.PageResult;
import com.flbill.pojo.dto.ExpenseDTO;
import com.flbill.pojo.dto.TransactionsDTO;
import com.flbill.pojo.dto.TransactionsPageDTO;
import org.springframework.stereotype.Service;

@Service
public interface TransactionsService {
    public void addExpense(ExpenseDTO expenseDTO);
    void addIncome(com.flbill.pojo.dto.IncomeDTO incomeDTO);


    PageResult ExpensePagelist(TransactionsPageDTO transactionsPageDTO);

    PageResult IncomePagelist(TransactionsPageDTO transactionsPageDTO);

    void delete(Integer id,String type);

    void update(Integer id, TransactionsDTO transactionsDTO);
}
